package com.wu.pojo.reqeust.sys;

import com.wu.pojo.reqeust.BaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
public class SaveRoleRequest extends BaseRequest {

    @ApiModelProperty(value = "角色名称")
    @NotBlank(message = "角色名称为空")
    private String roleName;

    @ApiModelProperty(value = "权限集合")
    @NotNull(message = "权限为空")
    @Size(min = 1, message = "权限为空")
    private List<Long> resourceIds;
}
